<template>
  <div>
    <div>child5组件</div>
    <ul>
      <li v-for="item in ratedList" :key="item._id">{{ item.title }}</li>
    </ul>
  </div>
</template>

<script>
import { mapState, mapActions } from "vuex";
export default {
  computed: mapState(["ratedList"]),
  methods: mapActions(["getRatedListAsync"]),
  mounted() {
    this.getRatedListAsync().then(() => {
      console.log("请求结束了");
    });
  },
};
</script>
